package org.dtrd.modules.content.articles.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.modules.content.articles.entity.po.DtrdExtEmsYwCheckListCategory;

@Data
@ApiModel(value = "宜忌分类", description = "宜忌分类信息名称")
public class CheckCategory {

    @ApiModelProperty(name = "分类ID", value = "分类ID")
    private Integer dataId;

    @ApiModelProperty(name = "分类名称")
    private String categoryName;



    public CheckCategory parseFromPO(DtrdExtEmsYwCheckListCategory po) {
        dataId = po.getDataId();
        categoryName = po.getCategoryName();
        return this;
    }
}
